package cn.wolfcode.gitflow.service.Impl;

import cn.wolfcode.gitflow.domain.User;
import cn.wolfcode.gitflow.service.IUserService;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * @author zhenfeng
 * @Date 2021/5/28
 */
@Service
@Slf4j
public class UserServiceImpl implements IUserService {
    @Override
    public String currentUser(String username, String password) {
        log.info("实现登录功能...");
        User user = new User();
        user.setId(1L);
        user.setUsername("zs");
        user.setPassword("123");
        return JSON.toJSONString(user);
    }
}
